/* Script: mythyr-widget.min.js, Version: 5.0, Author: Dan Feiveson, Copyright: Legendary Data, LLC 2019-2020 */ var LDATA=typeof LDATA!="object"||LDATA==null?{}:LDATA,$MYTHYR=typeof $MYTHYR!="object"||$MYTHYR==null?{local:{}}:$MYTHYR;if(!("remove"in Element.prototype))Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}; LDATA.importCSS=function(a){var b=document.styleSheets,c=b.length,a=a.indexOf("http")==0?a:$MYTHYR.host+a;baseSrc=a.split("?")[0];for(var d=0;d0){var a=LDATA.scriptsToLoad.shift();a.test()?LDATA.importJS(a.file,LDATA.launchScripts):LDATA.launchScripts()}else for(;$MYTHYR.onEverythingLoaded.length>0;)$MYTHYR.onEverythingLoaded.shift()()};LDATA.utils={}; LDATA.utils.postEncode=function(a){a=a.replace(/\+/g,"%2B");a=a.replace(/=/g,"%3D");a=a.replace(/&/g,"%26");return a=a.replace(/%/g,"%25")};LDATA.utils.uuId=function(){return Math.random().toString(36).substring(2)+(new Date).getTime().toString(36)};LDATA.utils.prepJSON=function(a){if(a==null)return"";a+="";a=a.replace(/\\/g,"\\\\");return a=a.replace(/\"/g,'\\"')}; LDATA.utils.trim=function(a,b){if(b==null||b==" "||(b+"").length==0)b=" ";if(a==null)return a;for(b+="";a.substring(0,b.length)===b||a.substring(a.length-b.length)===b;)a.substring(0,b.length)===b&&(a=a.substring(b.length)),a.substring(a.length-b.length)===b&&(a=a.substring(0,a.length-b.length));return a}; LDATA.utils.rtrim=function(a,b){if(b==null||b==" "||(b+"").length==0)b=" ";if(a==null)return a;for(b+="";a.substring(a.length-b.length)===b;)a.substring(a.length-b.length)===b&&(a=a.substring(0,a.length-b.length));return a};LDATA.utils.getFieldClass=function(a){if(typeof a=="undefined"||a==null)return"";a=a.split("_")[0].split("-");return a[a.length-1]}; LDATA.utils.commaSeparateNumber=function(a){if(a.length>3){var b=0;val="";for(var c=a.length-1;c>=0;c--)b==3&&(val=","+val,b=0),val=a.charAt(c)+val,b++;a=val}return a};LDATA.utils.parseNumberNotation=function(a){if(a==null)return"";if(a.length==0)return"";for(var b="",c="",d=a.length-1;d>0;d--){c=a.charAt(d);if(c=="*"||c=="#"||c=="."&&a.charAt(d-1)=="#"||c=="0")break;b=c+b}return b}; LDATA.utils.parseDecimalPlaces=function(a){if(a.indexOf(".")==-1)return"";for(var a=a.split(".")[1],b=0,c=0;c=9)return 9;if(a.charAt(c)!="#")break;b++}return b};LDATA.utils.parseCommaSeparate=function(a){a=a.split(".")[0];return a.indexOf(",")!=-1?!0:!1}; LDATA.utils.arrayCompare=function(a,b){if(a==null&&b==null)return!0;if(a==null||b==null)return!1;if(a.length!=b.length)return!1;for(var c=0;c]+)>)/ig,"")}; LDATA.utils.formatNumber=function(a,b){if(b==null||typeof b!="string")b="#,###";if(a==null)return"";a+="";a=a.replace(/,/g,"");if(a==null||isNaN(a)||(a+"").length==0)return a;var c=b.substring(0,1)=="$"?!0:!1,d=LDATA.utils.parseNumberNotation(b),e=LDATA.utils.parseDecimalPlaces(b),h=a*1<0;h&&(a*=-1);var f=!0;if(e+""=="")try{var g=(a+"").split(".")[1],e=typeof g=="undefined"||g==null?0:g.length}catch(j){e=0}g=LDATA.utils.parseCommaSeparate(b);if(d.length>0){var i=LDATA.utils.trim(d," "),i=i.replace(/(<([^>]+)>)/ig, "");i.substring(0,1).toLowerCase()=="m"&&(a>=1E12?(a/=1E12,d=d.replace("mi","tri").replace("Mi","Tri").replace("M","T")):a>=1E9?(a/=1E9,d=d.replace("m","b").replace("M","B")):a>=1E6?a/=1E6:(d="",e=0));d=="[price]"&&(e=2)}b.replace(d,"");if(e*1==0)a=Math.round(a*1),f=!1;else{for(var i="1",k=0;k0&&(k="."+i[1]);if(f&& e>0&&k.length0&&(a+=d);h&&(a=""+(c?"("+a+")":"-"+a)+"");return a+""};$MYTHYR.isMobile=function(){var a=!1;try{a=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)}catch(b){a=!1}return a}; $MYTHYR.setCookie=function(a,b,c){var d=new Date;d.setTime(d.getTime()+c*36E5);c="expires="+d.toUTCString();document.cookie=a+"="+b+";"+c+";path=/"};$MYTHYR.getCookie=function(a){a+="=";for(var b=document.cookie.split(";"),c=0;c0&&a*1>0?"false":"true");$MYTHYR.formOpeners.toggle(b)};$MYTHYR.formOpeners.ynSet=function(a){var b=a.closest(".mero-toggle");b.attr("is-open","true");a.closest(".LDATA_yesNo[yn-val]").attr("yn-val")=="Y"&&b.attr("is-open","false");$MYTHYR.formOpeners.toggle(b)}; $MYTHYR.formOpeners.toggle=function(a){a.uniqueId();var b=a.attr("is-open");typeof b!="string"&&(b=a.hasClass("mero-header2")||a.hasClass("mero-toggle")?"false":"true",a.attr("is-open",b));b=b=="false";a.attr("is-open",b?"true":"false");for(var c=a.closest("tr, .LDATA_formRow"),d=!1;(c=$MYTHYR.formOpeners.getNext(c))!=null;)c.css("display",b?"":"none"),c.attr("form-opener-id",a.attr("id")),!d&&c.find('[contains-data="true"]').length>0&&(d=!0);var e;(e=a.closest("tr.dataRow")).length>0&&!d&&e.hide(); try{if(LDATA.resizeForms(),LDATA.DATA.META.isEmbedded)$MYTHYR.onResize()}catch(h){}};$MYTHYR.formOpeners.getNext=function(a){a=a.next("tr, .LDATA_formRow");return a.length==0?null:a.find(".mero-header0, .mero-header1, .mero-header2, .mero-header3, .mero-toggle").length>0?null:a}; $MYTHYR.formOpeners.init=function(a,b){b=typeof b=="boolean"?b:!1;$(".mero-toggle input.LDATA_textInput.numeric").each(function(){$MYTHYR.formOpeners.inputSet($(this))});$(".mero-toggle .LDATA_yesNo .LDATA_radioDiv").each(function(){$MYTHYR.formOpeners.ynSet($(this))});typeof a=="object"&&a!=null?(a.find(".mero-header1").attr("is-open","true"),a.find(".mero-header2").attr("is-open","false"),b&&a.find(".mero-header1, .mero-header2, .mero-toggle").attr("is-open","false"),a.find(".mero-header1, .mero-header2").dblclick()): ($(".mero-header1").attr("is-open","true"),$(".mero-header2").attr("is-open","false"),b&&$(".mero-header1, .mero-header2, .mero-toggle").attr("is-open","false"),$(".mero-header1, .mero-header2").dblclick());try{if(typeof LDATA=="object"&&typeof LDATA.admin!="undefined")LDATA.admin.onCloseConsole=function(){$MYTHYR.formOpeners.init(a)}}catch(c){console.log(c)}};$MYTHYR.formOpeners.openAll=function(a){$MYTHYR.formOpeners.init(a,!0)}; $MYTHYR.getMaxZ=function(a){return Math.max.apply(null,$(a).map(function(){var a;return isNaN(a=parseInt($(this).css("zIndex"),10))?0:a}))}; $MYTHYR.jobWatcher=function(a,b){this.jobId=a;this.activeList=b;this.fileDisplay=typeof b=="object"&&b!=null&&typeof b.title=="string"?$MYTHYR.bookmarker.slugify(b.title):"data-download";this.complete=function(a){$MYTHYR.miniConsole.progress("Complete",1,this.activeList);$MYTHYR.miniConsole.progress.reset(this.activeList);typeof a.CART=="object"?$MYTHYR.local.miniCart.build(a.CART,this.activeList):typeof a.FILENAME=="string"&&$MYTHYR.jobWatcher.retrieveFile(a.FILENAME,this.fileDisplay)};this.callback= function(a){try{if(typeof a.ERROR=="string")throw a.ERROR;if(a.STATUS=="Complete")return this.complete(a);$MYTHYR.miniConsole.progress(a.STATUS,a.PERCENTCOMPLETE,this.activeList);setTimeout($.proxy(this.status,this),1500)}catch(b){$MYTHYR.miniConsole.errorOut(b,this.activeList)}};this.getHost=function(){return $MYTHYR.host+"ajax"};this.status=function(){var a='MYTHYR={"EKEY":"@@EKEY@@", "MODE":"DOWNLOADSTATUS"';a+=', "JOB":{"JOBID":'+this.jobId+"}";a+="}";$.ajax({success:$.proxy(this.callback,this), failure:function(a){console.log("error!");console.log(a)},method:"POST",data:a,url:this.getHost(),datatype:"json"})}};$MYTHYR.jobWatcher.retrieveFile=function(a,b,c){typeof c!="string"&&(c=typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host);if(typeof b!="string"||b==null||b.trim().length==0)b="data-download";a=c+"/retrieve/?file="+a+"&fname="+b;$("#LDATA_iframe").length==0&&$("body").append('');$("#LDATA_iframe").attr("src",a)}; $MYTHYR.banner=function(a){this.listId=(this.isListObj=typeof a=="object")?a.listId:a;this.ele=$('
');this.isInit=!1;this.set=function(a){this.isInit=!0;this.ele.html(a)};this.refresh=function(){if(!(this.isInit&&Math.round(Math.random()*4)!=3)){var a=(typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host)+"adpop/"+this.listId+"/"+window.location.hostname+"|"+this.listId+"|"+(this.isListObj&&$MYTHYR.local.activeList!=null?$MYTHYR.local.activeList.charttype: "estore");$.ajax({success:$.proxy(this.set,this),error:$.proxy(this.set,this),method:"GET",url:a,dataType:"html"})}};this.getEle=function(){return this.ele}}; $MYTHYR.miniConsole=function(a,b){function c(b){b.find("[scroller-which]").addClass("disabled");if(typeof a=="object"&&a!=null&&!a.isPreview&&(a.hasNext()&&b.find('[scroller-which="next"]').removeClass("disabled"),a.hasPrev()&&b.find('[scroller-which="prev"]').removeClass("disabled"),typeof a.scrollerHref=="string"&&(b.find("[scroller-which]").removeAttr("href"),a.filter==null&&(a.keywords==null||a.keywords.trim()=="")))){if(a.hasNext()){var l=a.start*1+a.limit*1;b.find('[scroller-which="next"]').attr("href", a.scrollerHref.replace("@START@",l))}a.hasPrev()&&(l=a.start*1-a.limit*1,l<1&&(l=1),b.find('[scroller-which="prev"]').attr("href",a.scrollerHref.replace("@START@",l)))}b.find("[scroller-which].disabled").length==2?b.find("[scroller-which]").hide():b.find("[scroller-which]").css("display","")}function d(b){typeof a.scrollerHref=="string"&&a.filter==null&&(a.keywords==null||a.keywords.trim()=="")||(b=$(b.currentTarget),b.hasClass("disabled")||(b.attr("scroller-which")=="next"?a.doNextScroll():a.doPrevScroll()))} var e=typeof b.q=="object"?b.q:null;this.ele=$('
');this.ele.append('
');var h=typeof b.limit=="number"&&b.limit!=null&&!isNaN(b.limit)?b.limit:20;this.ele.append('");this.ele.append('");this.bottomScrollersEle=$('');this.bottomScrollersEle.append('");this.bottomScrollersEle.append('");this.ecomAnchor=null;var h= 0,f=typeof b.searchPlaceholder=="string"&&b.searchPlaceholder!=null&&b.searchPlaceholder.trim().length>0?b.searchPlaceholder:"Enter search terms here";if(typeof b.esearch=="boolean"&&b.esearch==!0){var g=$('
');if(typeof a=="object"&&a!=null&&a.isStore==!0)g.find("input").on("change",function(b){$MYTHYR.searchTerms=$(b.currentTarget).val().toLowerCase();a.refresh()});else g.find("input").on("keyup",function(a){$MYTHYR.searchTerms=$(a.currentTarget).val().toLowerCase();typeof $MYTHYR.buildStore=="function"&&$MYTHYR.buildStore()});this.ele.append(g);h++}else if(typeof b.dsearch=="boolean"&&b.dsearch==!0){var j=typeof b.searchTerms=="string"&&b.searchTerms!=null&&b.searchTerms.trim().length> 0?b.searchTerms.trim():"",g=$('
');g.find("input").on("change", function(b){$MYTHYR.miniConsole.dsearch(a,!0,$(b.currentTarget))});a.setKeywords=$.proxy(function(a){this.keywords=a;g.find("input").val(a)},a);this.searchInput=$(g.find("#mythyr-search-input")[0]);this.clearSearchBtn=$(g.find("#mythyr-clear-search")[0]);this.blurEffect=function(){var a=this.searchInput.val();if(typeof a!="string"||a==null)a="";if(this.ele[0].hasAttribute("collapse-mode")){var b=this.ele.attr("collapse-mode");this.ele.attr("collapse-mode",a.length>0||b!="search"||this.searchInput.is(":focus")? "search":"true")}this.clearSearchBtn.attr("empty-search",a.length==0)};g.find("input").on("blur",$.proxy(this.blurEffect,this));g.on("click","#mythyr-search-btn, #mythyr-clear-search",$.proxy(function(a){a=$(a.currentTarget);a.parent().hasClass("disabled")||(a.is("#mythyr-clear-search")&&(this.searchInput.val(""),this.searchInput.change()),this.blurEffect(),a.is("#mythyr-search-btn")&&this.searchInput.focus())},this));$(a.mainHandle).on("click",".quick-search-clear-btn",$.proxy(function(){this.searchInput.val(""); this.searchInput.change();this.blurEffect()},this));this.ele.append(g);this.ecomAnchor=g;h++}this.buildSorter=function(){};if(typeof b.sorter=="boolean"&&b.sorter===!0&&typeof b.directory=="boolean"&&b.directory===!0){g=$('
');this.ele.append(g);g.on("click","#mythyr-sort-btn",$.proxy(function(b){b=$(b.currentTarget); if(!b.hasClass("disabled"))this.ele.attr("collapse-mode")!="sorter"?this.ele.attr("collapse-mode","sorter"):(b.attr("msort-desc")=="true"?(b.attr("msort-desc","false"),a.sortDesc=!1):(b.attr("msort-desc","true"),a.sortDesc=!0),a.build())},this));g.find("select").on("change",$.proxy(function(b){b=$(b.currentTarget);a.sortKey=b.val();a.build()},this));this.buildSorter=function(){var b=a.sortFields,l=$("#mythyr-sorter");l.empty();var c=a.keywords;typeof c=="string"&&c!=null&&c.length>0&&l.append(''); for(c=0;c'+j.NAME+"")}l.val(a.sortKey);b=typeof a.sortDesc=="undefined"||a.sortDesc==null;$("[msort-desc]").attr("msort-desc",b?!1:a.sortDesc);b?$("[msort-desc]").addClass("disabled"):$("[msort-desc]").removeClass("disabled")};if(this.ecomAnchor==null)this.ecomAnchor=g;h++}if(typeof e=="object"&&e!=null){var f=typeof e.title=="string"?e.title:"Add My Business", j=(typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host)+(typeof a=="object"&&a!=null?"add-data-link/"+a.listId+"/"+e.key:"#/task/"+e.key),i=null;if(typeof $MYTHYR.estore.getAddBusinessUrl=="function"&&$MYTHYR.estore.getAddBusinessUrl!=null&&(i=$MYTHYR.estore.getAddBusinessUrl(j,e,a))!=null)j=i;g=$('"); this.ele.append(g);if(this.ecomAnchor==null)this.ecomAnchor=g;h++}e=$('
');if(typeof b.views=="object")for(f=0;f');h++}if(typeof b.views=="object"&&b.views.length>1&&(e.find('[chart-mode="'+a.charttype+'"]').addClass("disabled"),this.ele.append(e),this.ecomAnchor== null))this.ecomAnchor=e;this.setToCollapseMode=function(){this.ele.attr("collapse-mode","true")};h>4&&this.setToCollapseMode();this.hasMultipleElements=h>1;this.jobWatcher=null;this.setScrollers=function(){c(this.ele);c(this.bottomScrollersEle)};this.ele.on("click","[chart-mode]",$.proxy(function(b){b=$(b.currentTarget);if(!b.hasClass("disabled"))this.ele.find("[chart-mode]").removeClass("disabled"),b.addClass("disabled"),b=b.attr("chart-mode"),a.charttype=b,b=="list"?$(a.mainHandle).removeAttr("chart-type"): $(a.mainHandle).attr("chart-type",b),$(a.mainHandle).attr("view-mode",b),typeof this.ele.attr("collapse-mode")!="undefined"&&this.ele.attr("collapse-mode","true"),a.resetData(),a.init(),a.build()},this));this.ele.append('
');this.ele.on("click","[scroller-which]",d);this.bottomScrollersEle.on("click","[scroller-which]",d);this.ele.on("click","[mythyr-mode]",function(b){b=$(b.currentTarget).attr("mythyr-mode");$MYTHYR.miniConsole.modClick(b,a)});this.ecomChecked=!1;this.checkEcommerce= function(){if(!this.ecomChecked){this.ecomChecked=!0;var c=typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host,l="GET";typeof $MYTHYR.ecomAjaxMethod=="string"&&$MYTHYR.ecomAjaxMethod=="POST"?(l="POST",c=b.host,c.indexOf("?")!=-1&&(c+="&mode=estore&url=/")):c=LDATA.utils.rtrim(c,"/")+"/";var j=typeof a.fileId!="undefined"?"sf"+a.fileId:a.listId;$.ajax({success:$.proxy(function(b){if(!(typeof b!="object"||b==null||b.length==0)){var l=null;typeof b[0].DOWNLOAD=="boolean"&&b[0].DOWNLOAD==!0? l=typeof a.fileId!="undefined"?$(''):$(''):(b[0].ECOM=="PPREC"||b[0].ECOM=="PRICE")&&!isNaN(b[0].PRICE)?l=$(''): b[0].ECOM=="DLOAD"&&(l=$(''));l!=null&&(this.ecomAnchor==null?this.ele.prepend(l):this.ecomAnchor.before(l),this.ele.attr("collapse-mode","true"))}},this),error:$MYTHYR.buildStore,method:l,url:c+window.location.hostname+"/estore.json/"+j,dataType:"json"})}};this.getBottomScrollersEle=function(){return this.bottomScrollersEle}; this.getEle=function(){return this.ele}};$MYTHYR.miniConsole.dsearch=function(a,b,c){b=typeof b=="boolean"?b:!1;c=typeof c=="object"&&c!=null?c:$("#mythyr-search-input");a.keywords=c.length==0?"":c.val();a.recs=[];a.charttype=="series"&&a.loadChartHub(!0);if(a.keywords.length==0&&a.sortKey=="")a.sortKey=null;if(b&&(a.start=1,typeof a.scrollerHref=="string"&&a.filter==null&&(a.keywords==null||a.keywords.trim()==""))){window.location.href=a.scrollerHref.replace("@START@",1);return}a.build()}; $MYTHYR.forceSignRequests=!1; $MYTHYR.miniConsole.modClick=function(a,b){var c='MYTHYR={"EKEY":"@@EKEY@@", "MODE":"'+a+'"';$MYTHYR.forceSignRequests===!0&&typeof $MYTHYR.AKEY=="string"&&(c+=', "AKEY":"'+$MYTHYR.AKEY+'"');c+=', "ORDER":{"ORIGINURL":"'+LDATA.utils.postEncode(top.window.location.href)+'"';$MYTHYR.activeOrderKey!=null&&(c+=',"ORDERKEY":"'+$MYTHYR.activeOrderKey+'"');c+="}";var d=typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host;if(a=="CHECKOUT")b.history!=null&&(c+=', "HISTORY":"'+b.history+'"'),typeof b.fileId!= "undefined"?c+=', "STORE":[{"FILEID":'+b.fileId+"}]":(c+=', "LIST":{"LISTID":'+b.listId,typeof b.timeframe!="undefined"&&b.timeframe!=null&&b.timeframe.length>0&&(c+=', "TIMEFRAME":"'+b.timeframe+'"'),c+="}",b.viewAllPublished===!0&&(c+=', "FORCEKEYWORDS":true'));else if(a=="DOWNLOADLIST")c+=', "DASHLET":'+LDATA.utils.postEncode(typeof b.postData=="function"?JSON.stringify(b.postData()):'{"listId":'+b.listId+"}"),d=$MYTHYR.host;else if(a=="DOWNLOADSTATICFILE")c+=', "ITEM":{"FILEID":'+b.fileId+"}", d=$MYTHYR.host;c+="}";$.ajax({success:$.proxy(function(a){if(typeof a.JOB=="object")this.jobWatcher=new $MYTHYR.jobWatcher(a.JOB.JOBID,b),this.jobWatcher.status();if(typeof a.ORDERKEY=="string")$MYTHYR.activeOrderKey=a.ORDERKEY,$MYTHYR.setCookie("mythyr-order-key",a.ORDERKEY,2);if(typeof a.ERROR=="string")$MYTHYR.miniConsole.errorOut(a.ERROR,b);else if(typeof a.CART=="object"&&$MYTHYR.local.miniCart.build(a.CART,b),typeof a.FILENAME=="string"){var c=typeof b=="object"&&b!=null&&typeof b.title=="string"? $MYTHYR.bookmarker.slugify(b.title):"data-download";$MYTHYR.jobWatcher.retrieveFile(a.FILENAME,c)}},this),failure:function(a){console.log("error!");console.log(a)},method:"POST",data:c,url:d+"ajax",datatype:"json"})};$MYTHYR.local.miniCart=null; $MYTHYR.miniCart=function(){this.ele=$('
Shopping Cart
');this.tbody=$(this.ele.find("tbody")[0]);this.titleEle=$(this.ele.find(".title")[0]);this.checkoutBtn=$(this.ele.find("#ldata-cart-checkout")[0]);this.checkoutBtn.on("click",function(){window.location.href=(typeof $MYTHYR.libHost== "string"?$MYTHYR.libHost:$MYTHYR.host)+"#/checkout/"+$MYTHYR.activeOrderKey});this.hide=function(){this.ele.fadeOut()};this.show=function(){var a;try{if(a=$MYTHYR.miniCart.positioning().top,typeof a!="string")throw"bad positioning function";}catch(b){a=$(window).scrollTop()+10+"px"}this.ele.css({top:a});a=$MYTHYR.getMaxZ("body >");a<1E3&&(a=1E3);this.ele.css("zIndex",a+1);this.ele.fadeIn()};this.containsItem=function(a){if(typeof a.LISTID!="undefined")return this.ele.find('[store-list-id="'+a.LISTID+ '"]').length>0;if(typeof a.FILEID!="undefined")return this.ele.find('[store-file-id="'+a.FILEID+'"]').length>0};this.disableEstoreItem=function(a,b){if(a!=null){var c=a.split("-");if(c.length==2){var d=$("table.mythyr-estore");d.length!=0&&(c[0]=="staticfile"?(b.attr("store-file-id",c[1]),$(d[0]).find('[file-id="'+c[1]+'"]').addClass("in-cart")):(b.attr("store-list-id",c[0]),$(d[0]).find('[list-id="'+c[0]+'"]').addClass("in-cart")))}}};this.build=function(a,b){this.tbody.empty();if(typeof a.ERROR== "string")$MYTHYR.activeOrderKey=null,$MYTHYR.setCookie("mythyr-order-key","",-1),this.hide();else if(!(typeof a!="object"||a==null||typeof a.ITEMS!="object")){var c=0;$("table.mythyr-estore tr.in-cart").removeClass("in-cart");for(var d=0;d');h.append(""+e.NAME+"");c+=e.ITEMPRICE*1;h.append(""+LDATA.utils.formatNumber(e.ITEMPRICE,"$#,###.##[price]")+"");h.append(''+ $MYTHYR.miniCart.removebutton+"");this.tbody.append(h);this.disableEstoreItem(e.CACHEKEY,h)}d=a.ITEMS.length;d==0?this.hide():(this.tbody.append("Total"+LDATA.utils.formatNumber(c,"$#,###.##[price]")+""),this.titleEle.html("Cart ("+d+" item"+(d==1?"":"s")+")"),this.show(),$MYTHYR.miniConsole.progress.reset(b))}};this.refresh=function(a){if(!(typeof $MYTHYR.activeOrderKey!="string"||$MYTHYR.activeOrderKey==null)){var b=(typeof $MYTHYR.libHost=="string"? $MYTHYR.libHost:$MYTHYR.host)+"minicart/"+$MYTHYR.activeOrderKey;typeof a!="undefined"&&(b+="/"+a);$.ajax({success:$.proxy(this.build,this),error:$.proxy(this.build,this),method:"GET",url:b,dataType:"json"})}};this.init=function(){try{this.ele.draggable({handle:".title"})}catch(a){console.log("Draggable not implemented: "+a)}this.ele.css($MYTHYR.miniCart.positioning());this.ele.on("click","a.ldata-cart-remove-btn",$.proxy(function(a){this.refresh($(a.currentTarget).closest("tr[item-id]").attr("item-id"))}, this));this.refresh()};this.ele.hide();$("body").append(this.ele);this.init()};$MYTHYR.miniCart.positioning=function(){return{right:"10px",top:$("body").scrollTop()+10+"px",position:"absolute"}};$MYTHYR.miniCart.removebutton=''; $MYTHYR.miniConsole.errorOut=function(a,b){var c=typeof b=="object"&&b!=null&&typeof b.guid=="string"?'[mythyr-widget-guid="'+b.guid+'"] ':"";$(c+"#mythyr-error").html(a);$(c+"#mythyr-error").is(":visible")||$(c+"#mythyr-error").show();setTimeout(function(){$MYTHYR.miniConsole.progress.reset(b)},1E3)}; $MYTHYR.miniConsole.progress=function(a,b,c){c=typeof c=="object"&&c!=null&&typeof c.guid=="string"?'[mythyr-widget-guid="'+c.guid+'"] ':"";$(c+"#mythyr-error").show();$(c+"#mythyr-error").html('")};$MYTHYR.miniConsole.progress.reset=function(a){var b=typeof a=="object"&&a!=null&&typeof a.guid=="string"?'[mythyr-widget-guid="'+a.guid+'"] ':"";$(b+"#mythyr-error").fadeOut(function(){$(b+"#mythyr-error").empty()})}; $MYTHYR.AKEY="@@AKEY@@";$MYTHYR.EKEY="@@EKEY@@";$MYTHYR.local.activeList=null;$MYTHYR.activeOrderKey=$MYTHYR.getCookie("mythyr-order-key");$MYTHYR.reset=function(){for(var a=document.getElementById("main-content");a.firstChild;)a.removeChild(a.firstChild);a.removeAttribute("chart-type");a.removeAttribute("view-mode");a.removeAttribute("hide-title");$MYTHYR.local.activeList=null}; $MYTHYR.widget=function(a,b){if(typeof b!="object"||b==null)throw"Missing configuration object!";if(typeof b.host!="string"||b.host==null)throw"Missing required configuration parameter host";var c=typeof b.autoLaunch=="boolean"&&b.autoLaunch!=null?b.autoLaunch:!0;$MYTHYR.host=LDATA.utils.rtrim(b.host,"/")+"/";var d=typeof b.libhost=="string"&&b.libhost!=null?LDATA.utils.rtrim(b.libhost,"/")+"/":"";if(d.length>0)$MYTHYR.libHost=d;$MYTHYR.ecomAjaxMethod=typeof b.ecomAjaxMethod=="string"&&b.ecomAjaxMethod!= null&&b.ecomAjaxMethod.toLowerCase()=="post"?"POST":"GET";$MYTHYR.remoteFileRoot=(typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host)+"files/view/s3/";b.keys=typeof b.keys=="object"&&b.keys!=null?b.keys:[];if(typeof b.key=="undefined"&&typeof b.keys=="undefined")throw"Invalid configuration: must include either a key or keys parameter";var e=typeof b.views=="object"?b.views:[];b.views=[];for(var h=0;h0?b.views[0]:"list",j=typeof b.hideTitle=="boolean"?b.hideTitle:!1,i=typeof b.poweredbyurl=="string"?b.poweredbyurl:"http://www.legendarydata.com";$MYTHYR.AKEY=typeof b.key=="string"?b.key:b.keys[0];if(typeof b.keys[1]=="string")$MYTHYR.EKEY=b.keys[1];var e=typeof b.prefix=="string"?b.prefix:"",h=e.length>0?"pre/"+e+"/":"",k=e.length>0?"#"+e+"-main-content":"#main-content";typeof b.guid=="string"&&b.guid!=null&&b.guid.length>0&&(k+='[mythyr-widget-guid="'+ b.guid+'"]');LDATA.importCSS(d+"css/"+h+"mythyr-widget.min.css");LDATA.scriptsToLoad.push({file:d+"api/scripts/jquery.min.js",test:function(){return typeof $=="undefined"}});LDATA.scriptsToLoad.push({file:d+"api/scripts/jquery-ui.min.js",test:function(){return typeof $=="undefined"||typeof $.ui=="undefined"}});if(b.views.indexOf("map")!=-1&&(typeof b.googleMapsKey=="string"||typeof google!="undefined"))typeof b.googleMapsKey=="string"&&LDATA.scriptsToLoad.push({file:"https://maps.googleapis.com/maps/api/js?key="+ b.googleMapsKey,test:function(){return typeof google=="undefined"}}),LDATA.scriptsToLoad.push({file:d+"js/google.infobox.min.js",test:function(){return typeof InfoBox=="undefined"}}),LDATA.scriptsToLoad.push({file:d+"js/google.markerclusterer.min.js",test:function(){return typeof MarkerClusterer=="undefined"}});LDATA.scriptsToLoad.push({file:d+"js/mythyr-media.min.js",test:function(){return typeof $MYTHYR.media=="undefined"}});$MYTHYR.onEverythingLoaded.push(function(){j&&$(k).attr("hide-title","true"); if(typeof $MYTHYR.media=="undefined")throw"Could not build widget. Likely Wordpress / Resolve collision. Try adding autoLaunch:false to widget config";var a=new $MYTHYR.media.list(b.id);a.mainHandle=k;a.charttype=g;if(typeof b.linkToListSiblings=="boolean"&&b.linkToListSiblings===!0)a.linkToListSiblings=!0;if(typeof b.children=="object")a.children=b.children;a.suppressSelects=!a.hasChildren()&&b.views.indexOf("series")==-1&&b.views.indexOf("map")==-1;if(typeof b.directory=="boolean"&&b.directory=== !0)a.display="directory";else if(typeof b.display=="string"&&b.display!=null)a.display=b.display;if(typeof b.viewAllPublished=="boolean"&&b.viewAllPublished===!0)a.viewAllPublished=!0;if(typeof b.pastVersions=="boolean"&&b.pastVersions===!0)a.pastVersions=!0;if(typeof b.timeframe=="string")a.timeframe=b.timeframe;if(typeof b.summarize=="object"&&b.summarize!=null)a.summarize=b.summarize;if(typeof b.limit=="number"&&b.limit!=null&&!isNaN(b.limit)&&b.limit>0)a.limit=b.limit;if(typeof b.start=="number"&& b.start!=null&&!isNaN(b.start)&&b.start>0)a.start=b.start;if(typeof b.rimKey=="string")a.rimKey=b.rimKey;if(typeof b.sortKey=="string")a.sortKey=b.sortKey;if(typeof b.sortDesc=="boolean")a.sortDesc=b.sortDesc;if(typeof b.groupKey=="string")a.groupKey=b.groupKey;if(typeof b.groupBy=="string")a.groupBy=b.groupBy;if(typeof b.history=="string")a.history=b.history;if(typeof b.filter=="object")a.filter=b.filter;if(typeof b.recs=="object")a.recs=b.recs;if(typeof b.chartOptions=="object")a.chartOptions=b.chartOptions; if(typeof b.scrollerHref=="string"&&b.scrollerHref!=null&&b.scrollerHref.indexOf("@START@")!=-1)a.scrollerHref=b.scrollerHref;if(typeof b.searchTerms=="string"&&b.searchTerms=="_all_")b.searchTerms="";g!="list"&&$(k).attr("chart-type",g);$(k).attr("view-mode",g);a.init();var c=new $MYTHYR.miniConsole(a,b);$(k).append(c.getEle());var e=[];if(typeof b.dropdowns=="object"&&b.dropdowns!=null)for(var h=0;h0)a.filterBuilder=new $MYTHYR.widget.filterer(a,e);c.getEle().outerWidth()<720&&c.hasMultipleElements&&c.setToCollapseMode();var n=new $MYTHYR.banner(a);$(k).append(n.getEle());$(k).append(a.getEle());a.mapHandle="#ldata-map-content";if(typeof b.guid=="string"&&b.guid!=null&&b.guid.length>0)a.mapHandle='[mythyr-widget-guid="'+b.guid+'"] '+a.mapHandle;$(k).append('
'); if(typeof b.profilePath!="string"&&$MYTHYR.widget.profilePath!=null)b.profilePath=$MYTHYR.widget.profilePath;if(typeof b.profilePath=="string"||typeof $MYTHYR.local.bookmarker=="object"){if(typeof $MYTHYR.local.bookmarker=="undefined")$MYTHYR.local.bookmarker=new $MYTHYR.bookmarker(b.profilePath,{host:d==""?$MYTHYR.host:d,disabled:b.disableBookmarker===!0}),$MYTHYR.widget.profileAnchor!=null&&$MYTHYR.local.bookmarker.anchorTo($MYTHYR.widget.profileAnchor);a.listWrapper.attr("profile-available",!0); $(k).on("click","tr[rec-id]"+(a.suppressSelects?"":".selected-rec")+" td:not(:last-child)",function(a){a.stopPropagation();var a=$(a.currentTarget).closest("tr"),b=a.attr("rec-id"),c=a.closest("[rec-typ]").attr("rec-typ");!(c!="Business"&&c!="Person")&&typeof $MYTHYR.local.bookmarker=="object"&&(a={ID:b,NAME:a.attr("rec-name"),SLUG:a.attr("rec-slug")},$MYTHYR.local.bookmarker.addRec(a))})}a.onBuildComplete=function(){c.setScrollers();c.checkEcommerce();a.isPreview&&($(k).find('a[chart-mode="series"], a[chart-mode="pie"], a[chart-mode="map"], [collapse-btn="search"]').addClass("disabled"), $(k).find('[collapse-btn="search"] input').prop("disabled",!0))};a.onViewRefresh=function(){n.refresh();c.buildSorter();a.charttype=="list"&&typeof $MYTHYR.local.bookmarker=="object"&&(a.recTyp=="Business"||a.recTyp=="Person")&&$(k).find("table tbody tr[rec-id][rec-name], div.ldata-entry[rec-id][rec-name]").each(function(){var a=$(this),b=$MYTHYR.local.bookmarker.getUrl({ID:a.attr("rec-id"),NAME:a.attr("rec-name"),SLUG:a.attr("rec-slug")});a.find(".profile-btn, .ldl-profile-link").attr("href",b); a.is(".ldata-entry")||(b=$MYTHYR.local.bookmarker.isBookmarked(a.attr("rec-id")),a[0].tagName=="TR"&&(a=$(a.find($MYTHYR.widget.bookmarkPlacement)[0])),a.find(".ldata-rec-bookmark").length>0||$MYTHYR.local.bookmarker.isDisabled()||(a.css("position","relative"),a.append('
')))})}; a.onDataError=$.proxy(function(a){$(k).attr("chart-type","error");var b=$MYTHYR.media.defaultError;if(typeof a.ERROR=="string")b=a.ERROR;a="

List Unavailable

The following error has occurred: "+b+"

";b=="Access not allowed"&&(a+='

This list is not longer available on this site, but you may be able to view this list — and many more like it — at '+$MYTHYR.host+"

");this.ele.html('
'+a+"
")},a);if(typeof b.searchTerms== "string"&&b.searchTerms!=null&&b.searchTerms.trim().length!=0)a.keywords=b.searchTerms.trim();$(k).append(c.getBottomScrollersEle());$(k).append('
');if($MYTHYR.local.miniCart==null)$MYTHYR.local.miniCart=new $MYTHYR.miniCart;if(typeof b.guid=="string"&&b.guid!=null){if(typeof $MYTHYR.local.activeLists!="object"||$MYTHYR.local.activeLists== null)$MYTHYR.local.activeLists=[];a.guid=b.guid;$MYTHYR.local.activeLists[b.guid]=a}else $MYTHYR.local.activeList=a;try{typeof b.customize=="function"?b.customize(b,$(k),c,a):typeof $MYTHYR.widget.customize=="function"&&$MYTHYR.widget.customize(b,$(k),c,a),a.build()}catch(o){if(typeof o.onError=="function")o.onError(a)}});c&&LDATA.launchScripts()};$MYTHYR.widget.bookmarkPlacement="td:last-child"; $MYTHYR.widget.header=function(a){if(typeof a!="object"||a==null)throw"Missing configuration object!";if(typeof a.host!="string"||a.host==null)throw"Missing required configuration parameter host";a.views=[];$MYTHYR.host=LDATA.utils.rtrim(a.host,"/")+"/";var b=typeof a.libhost=="string"&&a.libhost!=null?LDATA.utils.rtrim(a.libhost,"/")+"/":"";if(b.length>0)$MYTHYR.libHost=b;var c={};typeof a.fileId!="undefined"?c.fileId=a.fileId:c.listId=a.id;$MYTHYR.ecomAjaxMethod=typeof a.ecomAjaxMethod=="string"&& a.ecomAjaxMethod!=null&&a.ecomAjaxMethod.toLowerCase()=="post"?"POST":"GET";var d=typeof a.prefix=="string"?a.prefix:"",e=d.length>0?"pre/"+d+"/":"",h=d.length>0?"#"+d+"-main-content":"#main-content";typeof a.guid=="string"&&a.guid!=null&&a.guid.length>0&&(h+='[mythyr-widget-guid="'+a.guid+'"]');LDATA.importCSS(b+"css/"+e+"mythyr-widget.min.css");LDATA.scriptsToLoad.push({file:b+"api/scripts/jquery.min.js",test:function(){return typeof $=="undefined"}});LDATA.scriptsToLoad.push({file:b+"api/scripts/jquery-ui.min.js", test:function(){return typeof $=="undefined"||typeof $.ui=="undefined"}});$MYTHYR.onEverythingLoaded.push(function(){var b=new $MYTHYR.miniConsole(c,a);$(h).append(b.getEle());if($MYTHYR.local.miniCart==null)$MYTHYR.local.miniCart=new $MYTHYR.miniCart;b.checkEcommerce()});LDATA.launchScripts()}; $MYTHYR.widget.quickMapBuilder=function(a,b,c){document.write('
");$(document).ready(function(){var d=typeof b!="undefined"?$('[mythyr-guid="'+b+'"]')[0]:document.getElementById("ldata-quick-map");if(!(typeof a!="object"||a==null||a.length==0)){var e={zoom:7,disableDefaultUI:!0};if(typeof c=="object")e.styles=c;else if(typeof $MYTHYR.mapStyles=="object")e.styles=$MYTHYR.mapStyles;for(var h=new google.maps.Map(d,e), d={path:"M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z M -2,-30 a 2,2 0 1,1 4,0 2,2 0 1,1 -4,0",fillColor:"#F16723",fillOpacity:0.9,strokeColor:"#000",strokeWeight:1,scale:1},e=new google.maps.LatLngBounds,f=[],g=0;g0){var f={ROWS:d};this.activeList.filter={toData:function(){return f}}}else this.activeList.filter=null;if(b!==!0)a.start=1,typeof a.scrollerHref=="string"&&this.activeList.filter==null&&(this.activeList.keywords==null||this.activeList.keywords.trim()=="")?window.location.href=a.scrollerHref.replace("@START@", 1):this.activeList.build()};this.build(!0)}; $MYTHYR.widget.dropdown=function(a,b,c,d){this.ele=$('
');this.activeList=a;typeof c!="string"&&(c="Filter by "+b);this.labelSelect=$("");this.ele.append(this.labelSelect);a='MYTHYR={"AKEY":"'+$MYTHYR.AKEY+'", "EKEY":"@@EKEY@@", "MODE":"LISTDROPDOWN", "LIST":{"LISTID":'+a.listId+'}, "FIELD":{"DATACLASS":{"KEY":"'+b+'"}}}';this.errorOut=function(){this.ele.hide()};var e=!1;this.val=function(){return e||typeof d!="string"? this.labelSelect.val():'"'+d+'"'};this.makeRow=function(){if(this.val()==""||this.val()==null)return null;var a=this.val().replace(/"/g,"");a.indexOf(" ")!=-1&&(a='"'+a+'"');return{KEY:b,MOD:"REQ",VAL:a}};this.labelSelect.on("change",$.proxy(function(a){if(typeof this.onChangeFunc=="function")this.onChangeFunc(this);a=$(a.currentTarget);this.text=a.val()==""?"":a.find("option:selected").html();this.activeList.filterBuilder.build()},this));$.ajax({method:"POST",url:$MYTHYR.host+"ajax",dataType:"json", data:a,success:$.proxy(function(a){if(a.length>250||a.length==0)return this.errorOut();this.labelSelect.empty();this.labelSelect.append('");for(var f=0;f"+g.NAME+"")}e=!0},this)});this.getEle=function(){return this.ele}};$MYTHYR.widget.dropdown.placeholderLabel=function(a,b){return b}; $MYTHYR.searchTerms=null;$MYTHYR.widget.allowedViews=["list","map","pie","series","bar"]; $MYTHYR.form=function(a){if(typeof a!="object"||a==null)throw"Missing configuration object!";if(typeof a.host!="string"||a.host==null)throw"Missing or invalid configuration parameter: host!";if(typeof a.key!="string"||a.key==null)throw"Missing or invalid configuration parameter: key!";if(typeof a.listId=="undefined"||a.listId==null||isNaN(a.listId))throw"Missing or invalid configuration parameter: listId!";var b=typeof a.init=="function"?a.init:null;$MYTHYR.host=LDATA.utils.trim(a.host,"/")+"/";var c= a.key,d=typeof a.env=="string"?a.env:null,e=typeof a.defEnvId!="undefined"&&!isNaN(a.defEnvId)?a.defEnvId:null,h=typeof a.recId!="undefined"?a.recId:null,f=a.listId;LDATA.importJS("api/scripts/mero.js",function(){var a={AKEY:c,theme:null,searchTheme:null,host:$MYTHYR.host+"api",relay:$MYTHYR.host+"ajax",container:"main-content",defaultEnvironmentId:e,JSAbstraction:"jquery"};if(d!=null)a.EKEY=d;if(b!=null)a.init=b;(new MEROVEUS(a)).view(h,f)})};$MYTHYR.eStoreData=[]; $MYTHYR.estore=function(a){if(typeof a!="object"||a==null)throw"Missing configuration object!";if(typeof a.host!="string"||a.host==null)throw"Missing required configuration parameter host";$MYTHYR.host=LDATA.utils.rtrim(a.host,"/")+"/";var b=typeof a.domain=="string"?a.domain:window.location.hostname,c=typeof a.q=="object"&&a.q!=null?a.q.key:null,d=typeof a.staticFileDetails=="boolean"?a.staticFileDetails:!1,e=typeof a.ajaxMethod=="string"&&a.ajaxMethod=="POST"?"POST":"GET",h=typeof a.libHost=="string"? LDATA.utils.trim(a.libHost,"/")+"/":"";if(h.length>0)$MYTHYR.libHost=h;var f="",g=null,j=null;if(typeof a.start=="number")f="start="+a.start,g=a.start;if(typeof a.limit=="number")f+=(f.length>0?"&":"")+"limit="+a.limit,j=a.limit;var i=typeof a.prefix=="string"?a.prefix:"",k=i.length>0?"pre/"+i+"/":"";$MYTHYR.local.mainHandle=i.length>0?"#"+i+"-main-content":"#main-content";LDATA.importCSS(h+"css/"+k+"mythyr-widget.min.css");LDATA.scriptsToLoad.push({file:h+"api/scripts/jquery.min.js",test:function(){return typeof $== "undefined"}});LDATA.scriptsToLoad.push({file:h+"api/scripts/jquery-ui.min.js",test:function(){return typeof $.ui=="undefined"}});LDATA.scriptsToLoad.push({file:h+"js/mythyr-customize.js",test:function(){return!0}});$MYTHYR.buildStore=function(){var a=$($MYTHYR.local.mainHandle+" .list-wrapper tbody"),b=$($MYTHYR.local.mainHandle+" .e-store");a.empty();for(var c=0,j=0;j<$MYTHYR.eStoreData.length;j++){var k=$MYTHYR.eStoreData[j];if(!$MYTHYR.estore.filter(k)){var i=$MYTHYR.buildStore.makeRow(k,j,b); a.append(i);if(typeof k.CHILDREN=="object")for(i=0;i');c++}}a.is(":empty")&&a.append('No matching lists / downloads found');b.attr("visible-max",c>15?"true":"false")};$MYTHYR.buildStore.makeRow=function(a,b,j){var k=typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host, i=$("");i.attr("mero-nth-odd",b%2==0?"true":"false");$MYTHYR.local.miniCart.containsItem(a)&&i.addClass("in-cart");if(typeof a.LISTID!="undefined")i.attr("list-id",a.LISTID),i.attr("list-name",$MYTHYR.bookmarker.slugify(a.NAME)),i.attr("rec-id","_"+a.LISTID);else{i.attr("file-id",a.FILEID);i.attr("file-name",$MYTHYR.bookmarker.slugify(a.NAME));if(d)a.URL=$MYTHYR.bookmarker.slugify(a.NAME);i.attr("rec-id","_"+a.FILEID)}typeof a.ISLAST=="boolean"&&a.ISLAST===!0&&i.attr("is-last","last");i.attr("rec-typ", "List");i.attr("rec-name",a.NAME);b="";if(typeof a.LASTUPDATE=="string"){i.attr("upd-dt",a.LASTUPDATE);var e=new Date;e.setDate(e.getDate()-7);Date.parse(a.LASTUPDATE)>e&&(b='')}var e="list-numbered",f="A ranked list",g=null;try{typeof a.IMGFILEPATH=="string"&&a.IMGFILEPATH!=null&&a.IMGFILEPATH.length>0&&(g='
'),a.RECTYP=="Business"?(e="office",f="A list of businesses"):a.RECTYP=="Person"?(e="profile",f="A list of people"):a.FILETYPE!=null&&a.FILETYPE.indexOf("image")!=-1?(e="image",f="An image"):typeof a.FILETYPE=="string"&&a.FILETYPE.indexOf("pdf")!=-1?(e="file-pdf",f="A PDF file"):typeof a.FILETYPE=="string"&&a.FILETYPE.indexOf("csv")!=-1?(e="file-excel",f="A spreadsheet"):typeof a.FILENAME=="string"&&a.FILENAME.toLowerCase().indexOf(".xls")!=-1?(e="file-excel",f="A spreadsheet"):typeof a.FILETYPE== "string"&&a.FILETYPE.indexOf("zip")!=-1&&(e="file-zip",f="A compressed folder containing one or more files")}catch(h){e="list-numbered",f="A ranked list"}g==null&&(g='');i.append(''+g+"");f=a.NAME;if(e=typeof a.URL!="undefined"&&a.URL!=null&&a.URL.length>0)g=$MYTHYR.buildListLink(a),f=''+f+"",i.attr("rec-link",g);else if(a.DOWNLOAD==!0)f=""+f+"";else if(a.ECOM=="PPREC"|| a.ECOM=="PRICE")f=""+f+"";g=typeof a.DESCR!="undefined"&&a.DESCR!=null?a.DESCR:"";typeof a.PUBDT=="string"&&a.PUBDT!=null&&(g=""+a.PUBDT+""+(g.length>0?" — ":"")+g);i.append('
'+f+b+''+g+"
");b=$('');typeof a.DOWNLOAD=="boolean"&&a.DOWNLOAD==!0?(typeof a.FILEID!="undefined"?b.append(''):b.append(''),j.attr("has-ecom","true")):a.ECOM=="PPREC"||a.ECOM=="PRICE"?(b.append(''),j.attr("has-ecom","true")):a.ECOM=="DLOAD"?b.append(''): b.append('');c!=null&&(a.SUBMITOK==!0?(f=a.NAME.replace(/\"/g,""").replace(/\\n/g," ").replace(/\\r/g," "),b.append(''),j.attr("has-submit","true")):b.append(''));e?(b.append(''),j.attr("has-view","true")):b.append('');b.append('
');i.append(b);return i};$MYTHYR.onEverythingLoaded.push(function(){var c=$('
'), i=null;if(g!=null||j!=null)i={isStore:!0},g==null&&(g=1),j==null&&(j=25),i.hasPrev=function(){return g>j},i.hasNext=function(){return $($MYTHYR.local.mainHandle+' .e-store tr[is-last="last"]').length==0},i.doNextScroll=function(){g+=j;f="start="+g+"&limit="+j;$MYTHYR.getStore()},i.doPrevScroll=function(){g-=j;f="start="+g+"&limit="+j;$MYTHYR.getStore()},i.refresh=function(){g=1;f="start="+g+"&limit="+j;$MYTHYR.getStore()};var k=new $MYTHYR.miniConsole(i,a),d=$($MYTHYR.local.mainHandle);d.append(k.getEle()); if(typeof a.adzone!="undefined"&&!isNaN(a.adzone)){var h=new $MYTHYR.banner(a.adzone);d.append(h.getEle());h.refresh()}d.append(c);i!=null?(d.append(k.getBottomScrollersEle()),d.attr("view-mode","list")):(i=$(''),i.find("a.ldl-scrollup-btn").on("click",function(){var a=Math.round(d.position().top);$(window).scrollTop(a)}),d.append(i));c.on("click","[list-id] a[add-to-cart], [list-id] a[file-download]",function(a){a=$(a.currentTarget); if(!a.closest("[list-id]").hasClass("in-cart")){var b=a.closest("[list-id]").attr("list-id"),c=a.attr("file-download")!=null?"DOWNLOADLIST":"CHECKOUT";$($MYTHYR.local.mainHandle+' tr[list-id="'+b+'"] + tr td.error-cell').append($($MYTHYR.local.mainHandle+" #mythyr-error"));$MYTHYR.miniConsole.modClick(c,{listId:b,title:a.closest("[list-name]").attr("list-name")})}});c.on("click","[file-id] a[add-to-cart], [file-id] a[file-download]",function(a){var a=$(a.currentTarget),b=a.closest("[file-id]");if(!b.hasClass("in-cart")){var b= b.attr("file-id"),c=a.attr("file-download")!=null?"DOWNLOADSTATICFILE":"CHECKOUT";$($MYTHYR.local.mainHandle+' tr[file-id="'+b+'"] + tr td.error-cell').append($($MYTHYR.local.mainHandle+" #mythyr-error"));$MYTHYR.miniConsole.modClick(c,{fileId:b,title:a.closest("[file-name]").attr("file-name")})}});$MYTHYR.local.miniCart=new $MYTHYR.miniCart;typeof $MYTHYR.widget.customize=="function"&&$MYTHYR.widget.customize(a,$($MYTHYR.local.mainHandle),k);$MYTHYR.getStore=function(){f.length>0&&$MYTHYR.searchTerms!= null&&$MYTHYR.searchTerms.length>0&&(f+="&qry="+encodeURIComponent($MYTHYR.searchTerms));f.length>0&&(f=(e=="POST"&&$MYTHYR.host.indexOf("?")!=-1?"&":"?")+f);$.ajax({success:function(b){if(typeof b!="object"||b==null||f==""&&b.length==0)return $MYTHYR.estore.failure();$MYTHYR.eStoreData=b;$MYTHYR.buildStore();f!=""&&k.setScrollers();if(typeof a.onBuildComplete=="function")a.onBuildComplete();try{typeof $MYTHYR.local.bookmarker=="object"&&$MYTHYR.local.bookmarker.build()}catch(c){console.log(c)}}, error:$MYTHYR.estore.failure,method:e,url:$MYTHYR.host+b+"/estore.json"+f,dataType:"json"})};$MYTHYR.getStore()});LDATA.launchScripts()};$MYTHYR.estore.getAddBusinessUrl=null;$MYTHYR.buildListLink=function(a){return a.URL};$MYTHYR.estore.failure=function(){$($MYTHYR.local.mainHandle).empty();$($MYTHYR.local.mainHandle).html('

E-Store Unavailable

Either no products are available for viewing or purchase at this site or an error has occurred.

')}; $MYTHYR.estore.filter=function(a){return typeof a!="object"||a==null?!0:a.URL==""&&a.ECOM=="N"?!0:$MYTHYR.searchTerms!=null&&$MYTHYR.searchTerms!=""&&(a.NAME+" "+a.DESCR+" "+a.RECTYP).toLowerCase().indexOf($MYTHYR.searchTerms)==-1?!0:!1}; $MYTHYR.bookmarker=function(a,b){this.ele=$('
Bookmarked Records
');this.tbody=$(this.ele.find("tbody")[0]);this.titleEle=$(this.ele.find(".title")[0]);this.url=a;this.recs=[];this.watchIds=null;typeof b!="object"&&(b={});this.downloadBtn=$(' Download
'); var c=$('
'),d=null,e=null,h=null,f=null;if(typeof $MYTHYR.bookmarker.download=="object"&&$MYTHYR.bookmarker.download!=null)try{if(typeof $MYTHYR.bookmarker.download.listId=="undefined"||typeof $MYTHYR.bookmarker.download.key=="undefined"||typeof $MYTHYR.bookmarker.download.host=="undefined"||typeof $MYTHYR.bookmarker.download.libHost=="undefined")throw"missing required params in typeof $MYTHYR.bookmarker.download";d=$MYTHYR.bookmarker.download.listId;e=$MYTHYR.bookmarker.download.key; h=$MYTHYR.bookmarker.download.host;f=$MYTHYR.bookmarker.download.libHost;e.indexOf("_")==-1&&(e+="_static");e=e.replace(/-/g,"__");c.append(this.downloadBtn)}catch(g){console.log(g)}this.ele.append(c);this.disabled=typeof b.disabled=="boolean"?b.disabled:!1;this.hidden=typeof b.hidden=="boolean"?b.hidden:!1;this.isDisabled=function(){return this.disabled};this.isHidden=function(){return this.hidden};this.hide=function(){this.ele.fadeOut();if(typeof $MYTHYR.bookmarker.onDispayChange=="function")$MYTHYR.bookmarker.onDispayChange(this, !1)};this.buildDownloadRequest=function(){for(var a="",b=0;b200))break}a="ID:("+a+") "+e+":("+a+")";b='MYTHYR={"EKEY":"@@EKEY@@", "MODE":"DOWNLOADLIST"';b+=', "FORCEKEYWORDS":true, "DASHLET":{"listId":'+d;b+=', "keywords":"'+a+'"}';b+="}";return b};this.download=function(a){var b=$(a.currentTarget);if(!b.hasClass("disabled")){b.addClass("disabled");var a=this.buildDownloadRequest(),c=b.find(".ldl-progress");c.css("width", "");$.ajax({success:jQuery.proxy(function(a){if(typeof a.JOB=="object")this.jobWatcher=new $MYTHYR.jobWatcher(a.JOB.JOBID),this.jobWatcher.complete=jQuery.proxy(function(a){b.removeClass("disabled");c.css("width","");this.tbody.find("tr.disabled-row").removeClass("disabled-row");typeof a.FILENAME=="string"&&$MYTHYR.jobWatcher.retrieveFile(a.FILENAME,"bookmarked-records",f)},this),this.jobWatcher.getHost=$.proxy(function(){return h},this),this.jobWatcher.callback=$.proxy(function(a){try{if(typeof a.ERROR== "string")throw a.ERROR;if(a.STATUS=="Complete")return this.complete(a);c.css("width",a.PERCENTCOMPLETE*100+"%");setTimeout($.proxy(this.status,this),1500)}catch(b){}},this.jobWatcher),this.jobWatcher.status();typeof a.ERROR=="string"?(console.log(a.ERROR),c.css("width",""),b.removeClass("disabled"),this.tbody.find("tr.disabled-row").removeClass("disabled-row")):typeof a.FILENAME=="string"&&(this.tbody.find("tr.disabled-row").removeClass("disabled-row"),$MYTHYR.jobWatcher.retrieveFile(a.FILENAME,"bookmarked-records", f))},this),failure:function(a){console.log("error!");console.log(a)},method:"POST",data:a,url:h,datatype:"json"})}};this.downloadBtn.on("click",$.proxy(this.download,this));this.show=function(){if(!this.isDisabled()&&!this.isHidden()){var a=$MYTHYR.getMaxZ("body >");a<1E3&&(a=1E3);this.ele.css("zIndex",a+1);this.ele.fadeIn();if(typeof $MYTHYR.bookmarker.onDispayChange=="function")$MYTHYR.bookmarker.onDispayChange(this,!0)}};this.getUrl=function(a){return typeof $MYTHYR.bookmarker.buildItemUrl=="function"? $MYTHYR.bookmarker.buildItemUrl(a):isNaN(a.ID)?a.LINK:typeof a.SLUG=="string"&&a.SLUG!=null&&a.SLUG.trim().length>0?this.url.replace("://","@H@").replace("@@RECID@@","").replace("@@RECNAME@@",a.SLUG).replace("//","/").replace("//","/").replace("@H@","://"):this.url.replace("://","@H@").replace("@@RECID@@",a.ID).replace("@@RECNAME@@",$MYTHYR.bookmarker.slugify(a.NAME)).replace("@H@","://")};this.containsItem=function(a){if(typeof a.LISTID!="undefined")return this.ele.find('[store-list-id="'+a.LISTID+ '"]').length>0;if(typeof a.FILEID!="undefined")return this.ele.find('[store-file-id="'+a.FILEID+'"]').length>0};this.build=function(){if(this.isDisabled()||this.isHidden())if(this.ele.hide(),this.isDisabled())return;this.tbody.empty();$("[rec-id][rec-name] .ldata-rec-bookmark[is-bookmarked]").removeAttr("is-bookmarked");for(var a=0,b=$MYTHYR.bookmarker.maxdisplay,c=0;c= this.getMaxSize()){var b=this.recs.pop();typeof $MYTHYR.bookmarker.onChangeRec=="function"&&$MYTHYR.bookmarker.onChangeRec!=null&&$.proxy($MYTHYR.bookmarker.onChangeRec,this)({ID:b.ID},"remove")}if(typeof a.LINK!="string")a.LINK=window.location.href.replace(window.location.origin,"");this.recs.unshift(a);typeof $MYTHYR.bookmarker.onChangeRec=="function"&&$MYTHYR.bookmarker.onChangeRec!=null?$.proxy($MYTHYR.bookmarker.onChangeRec,this)(a,"add"):this.build()}};this.isBookmarked=function(a){for(var b= 0;b1&&b[0]=="_"&&!isNaN(b.replace(/_/g,"")))&&typeof $MYTHYR.bookmarker.onChangeRec=="function"&&$MYTHYR.bookmarker.onChangeRec!=null;b?$.proxy($MYTHYR.bookmarker.onChangeRec, this)({ID:a},"remove"):this.build()};this.getRec=function(a){a+="";for(var b=0;b'),c=$('');a.on("click",$.proxy(function(){this.ele.attr("is-anchored","false");this.ele.draggable("enable");this.ele.css({top:"10px",right:"10px"});$("body").append(this.ele); this.isAnchored=!1},this));c.on("click",$.proxy(function(){this.ele.attr("is-anchored","true");this.ele.draggable("disable");this.ele.attr("style","");b.append(this.ele);this.isAnchored=!0},this));this.ele.attr("style","");this.ele.find(".hd").append(a);this.ele.find(".hd").append(c);typeof this.ele.draggable=="function"&&this.ele.draggable("disable")}}};this.init=function(){try{this.ele.draggable({handle:".title",start:$.proxy(function(){if(this.isAnchored)return!1},this)})}catch(a){console.log("Draggable not implemented: "+ a)}this.ele.css($MYTHYR.miniCart.positioning());this.ele.on("click","a.ldata-cart-remove-btn",$.proxy(function(a){this.refresh($(a.currentTarget).closest("tr[item-id]").attr("item-id"))},this));$("body").on("click","[rec-id][rec-name] .ldata-rec-bookmark",$.proxy(function(a){a.stopPropagation();a.preventDefault();var a=$(a.currentTarget),b=a.closest("[rec-id][rec-name]"),c=b.attr("rec-typ"),c=typeof c=="string"&&c!=null&&c!="Business"&&c!="Person"?c.toLowerCase():"record";if(a.attr("is-bookmarked")== "true")this.refresh(b.attr("rec-id")),a.attr("data-hint","Bookmark "+c);else{var d={ID:b.attr("rec-id"),NAME:b.attr("rec-name")};if(b.attr("rec-slug")!=null)d.SLUG=b.attr("rec-slug");if(b.attr("rec-typ")!=null)d.RECTYP=b.attr("rec-typ");if(b.attr("rec-link")!=null)d.LINK=b.attr("rec-link");$MYTHYR.local.bookmarker.addRec(d);a.attr("data-hint","Un-bookmark "+c)}},this));var b=null,c=null;try{b=JSON.parse($MYTHYR.getCookie("ldata-bookmarks"))}catch(d){b=[]}try{c=JSON.parse($MYTHYR.getCookie("ldata-bookmarks-watchids"))}catch(e){c= []}this.recs=typeof b=="object"&&b!=null?b:[];this.watchIds=typeof c=="object"&&c!=null?c:[];this.refresh()};this.ele.hide();$("body").append(this.ele);c=typeof b.host=="string"?b.host:typeof $MYTHYR.libHost=="string"?$MYTHYR.libHost:$MYTHYR.host;LDATA.importCSS(c+"css/mythyr-widget.min.css");typeof $.ui=="undefined"&&typeof c=="string"?LDATA.importJS(c+"api/scripts/jquery-ui.min.js",$.proxy(this.init,this)):this.init()};$MYTHYR.bookmarker.displaySize=function(){}; $MYTHYR.bookmarker.onDispayChange=function(){}; $MYTHYR.bookmarker.buildRow=function(a,b){var c=$('');c.append(''+a.NAME+"");c.append('');c.append(''+$MYTHYR.miniCart.removebutton+""); return c};$MYTHYR.bookmarker.getSize=function(a){return a.recs.length};$MYTHYR.bookmarker.buildItemUrl=null;$MYTHYR.bookmarker.onChangeRec=null;$MYTHYR.bookmarker.maxsize=50;$MYTHYR.bookmarker.maxdisplay=10;$MYTHYR.bookmarker.slugify=function(a){return String(a).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}; $MYTHYR.profile=function(a,b){$MYTHYR.host=LDATA.utils.rtrim(b.host,"/")+"/";var c=typeof b.libhost=="string"&&b.libhost!=null?LDATA.utils.rtrim(b.libhost,"/")+"/":"";if(c.length>0)$MYTHYR.libHost=c;var d=typeof b.prefix=="string"&&b.prefix!=null?b.prefix:"";LDATA.importCSS(c+"css/"+(d.length>0?"pre/"+d+"/":"")+"mythyr-widget.min.css");LDATA.scriptsToLoad.push({file:c+"api/scripts/jquery.min.js",test:function(){return typeof $=="undefined"}});LDATA.scriptsToLoad.push({file:c+"api/scripts/jquery-ui.min.js", test:function(){return typeof $=="undefined"||typeof $.ui=="undefined"}});LDATA.scriptsToLoad.push({file:c+"js/mythyr-media.min.js",test:function(){return typeof $MYTHYR.media=="undefined"}});if(b.includeTimeline===!0||typeof b.timelineAnchor=="string")LDATA.importCSS(c+"css/vis-timeline-graph2d.min.css"),LDATA.scriptsToLoad.push({file:c+"js/vis-timeline-graph2d.min.js",test:function(){return typeof vis=="undefined"}});LDATA.scriptsToLoad.push({file:c+"js/chartjs.bundle.min.js",test:function(){return typeof Chart== "undefined"}});if(typeof b.googleMapsKey=="string"||typeof google!="undefined")typeof b.googleMapsKey=="string"&&LDATA.scriptsToLoad.push({file:"https://maps.googleapis.com/maps/api/js?key="+b.googleMapsKey,test:function(){return typeof google=="undefined"}}),LDATA.scriptsToLoad.push({file:c+"js/google.infobox.min.js",test:function(){return typeof InfoBox=="undefined"}});$MYTHYR.onEverythingLoaded.push(function(){this.anchor=$('[mythyr-widget-guid="'+b.guid+'"]');var d=typeof b.timelineAnchor=="string"? $(b.timelineAnchor):null;d!=null&&d.length==0&&(d=null);var h='MYTHYR={"EKEY":"@@EKEY@@", "AKEY":"'+$MYTHYR.AKEY+'", "MODE":"RECPROFILE", "REMOTEHOST":"'+window.location.hostname+'", "REC":{"ID":"'+a+'"}';if(b.includeTimeline===!0||d!=null)h+=', "INCLUDETIMELINE":true';h+="}";$.ajax({method:"POST",success:$.proxy(function(a){var g=new $MYTHYR.media.profile(a.ID,b);this.anchor.append(g.getEle());typeof a.TIMELINE=="object"&&g.loadTimeline(a.TIMELINE,d!=null&&d.length>0?d:this.anchor);if(typeof b.profileUrl== "string"&&typeof $MYTHYR.local.bookmarker=="undefined")$MYTHYR.local.bookmarker=new $MYTHYR.bookmarker(b.profileUrl,{host:c==""?$MYTHYR.host:c==""?$MYTHYR.host:c,disabled:b.disableBookmarker===!0}),$MYTHYR.widget.profileAnchor!=null&&$MYTHYR.local.bookmarker.anchorTo($MYTHYR.widget.profileAnchor);g.build(a);typeof b.banner=="function"&&b.banner(g.getBannerNode());typeof $MYTHYR.widget.customize=="function"&&$MYTHYR.widget.customize(b,this.anchor,null)},this),complete:$MYTHYR.endAjax,error:function(a){console.log(a)}, url:$MYTHYR.host+"ajax/getprofile",data:h,dataType:"json"})});LDATA.launchScripts()}; $MYTHYR.entry=function(a){if(typeof a!="object"||a==null)throw"Missing configuration object!";var b=a.key,c=typeof a.env=="string"?a.env:null,d=typeof a.init=="function"?a.init:function(){$("#LDATA_savewarning .savelink").on("click",function(){LDATA.local.submitObject.launch()});LDATA.events.register("onsubmissioncomplete",function(){var a=LDATA.DATA.META.newRec();LDATA.local.embeddedForm.populate(a);LDATA.local.embeddedForm.show()});typeof a.refactorSubmitObject=="function"&&a.refactorSubmitObject(LDATA.local.submitObject)}, e=typeof a.prefix=="string"?a.prefix:"",h=e.length>0?"pre/"+e+"/":"",f=e.length>0?e+"-main-content":"main-content";$MYTHYR.host=LDATA.utils.trim(a.host,"/")+"/";LDATA.importCSS("css/"+h+"mythyr-widget.min.css");LDATA.importJS("api/scripts/mero.js",function(){var a={theme:"ENTRY",searchTheme:null,host:$MYTHYR.host+"api",relay:$MYTHYR.host+"ajax",container:f,suppressIconFontLoad:!0,JSAbstraction:"jquery",onDataLoaded:function(){$("body").addClass("ldl-widget-ui");$MYTHYR.docsync=function(a,b){this.ele= $MERO.Node.create('
');b=typeof b=="object"?b:{};this.accessName="AWS S3";this.itemBuilder=$MYTHYR.docsync.item;this.srckey=a;this.syncMgr=new LDATA.fields.syncMgr(a);this.syncMgr.checkSet=function(){};this.syncMgr.select=$MERO.bind(function(){if(this.syncMgr.currentRecord!=null){var a=this.syncMgr.currentRecord.SYNC;typeof a!="object"&&(a={});var a=typeof a[this.syncMgr.syncsrc]=="object"?a[this.syncMgr.syncsrc]:[],b=a.length;this.syncMgr.items=[];this.syncMgr.ul.all("li").remove(!0); for(var c=0;c

'+this.accessName+" Access Not Authorized

")};this.fileMgr=new LDATA.fields.uploader(b);this.fileMgr.on("uploadcomplete",function(a){a.filePath=="Error"?($MERO.log("error!"),this.shutdown()): (a=new this.itemBuilder(this.syncMgr,a.filePath,a.localFileName,!1),this.syncMgr.ul.append(a.getEle()),this.syncMgr.items.push(a),this.syncMgr.commit(),this.fileMgr.reset())},this);this.syncMgr.ul.addClass("doc-list");this.ele.append(this.syncMgr.ul);this.progEle=$MERO.Node.create('
');this.ele.append(this.progEle);this.ele.append(this.fileMgr.getEle());this.fileMgr.updateProgress=$MERO.bind(function(a, b,c){a>100&&(a=100);c?this.progEle.addClass("is-error"):this.progEle.removeClass("is-error");this.progEle.one(".upload-msg").setContent(b);this.progEle.one(".upload-inner").setStyle("width",a+"%")},this);this.fileMgr.beforeParse=$MERO.bind(function(a){var b=LDATA.fields.environmentSelector.current()+"/"+a.name;if(LDATA.fields.syncMgr.syncContains(this.syncMgr.currentRecord.SYNC,this.srckey,b))throw"File "+a.name+" already in set";},this);this.ele.append(this.fileMgr.detailsEle);this.set=function(a){this.syncMgr.currentRecord= a;this.fileMgr.action=$MYTHYR.host+"files/upload/s3/";try{typeof LDATA.local.TASK.LIST.LISTID!="undefined"&&(this.fileMgr.action+="?recId="+a.ID+"&listId="+LDATA.local.TASK.LIST.LISTID)}catch(b){}this.syncMgr.select();this.fileMgr.reset()};this.getEle=function(){return this.ele}};$MYTHYR.docsync.item=function(a,b,c,d){this.parent=a;this.val={ID:b,NAME:c,PRIMARY:d};this.ele=$MERO.Node.create("
  • ");this.isEmpty=function(){return typeof this.val.ID=="undefined"};this.toObj=function(){var a={ID:this.val.ID, NAME:this.val.NAME};if(typeof this.val.PRIMARY=="boolean")a.PRIMARY=this.val.PRIMARY;return a};this.getEle=function(){this.ele.remove(!0);this.ele=$MERO.Node.create('
  • ");this.ele.one("a.delete").on("click",function(){this.val={};this.parent.commit(); this.parent.select()},this);this.ele.all(".download").on("click",function(){var a=$MYTHYR.host+"files/view/force-download/s3/"+this.val.ID;document.getElementById("LDATA_iframe").src=a},this);return this.ele}};LDATA.fields.buildByKey["rec-aws-sync"]=function(a){a.docMgr=new $MYTHYR.docsync("aws");a.docMgr.accessName="AWS S3";a.CONTAINER.append(a.docMgr.getEle());a.setVal=function(b){a.docMgr.set(b)};a.hasValue=$MERO.bind(function(){return this.docMgr.syncMgr.hasValue()},a);a.print=function(a){return this.docMgr.syncMgr.print(a.SYNC)}; a.applyFormat=function(b,c){typeof b!="object"&&(b={});a.setRequired(b.REQUIRED,c);a.docMgr.syncMgr.isRequired=b.REQUIRED===!0}};LDATA.fields.buildByKey["rec-list-label-sync"]=function(a){function b(a,c){this.fld=c;this.data={LABELID:a.LABELID,NAME:a.NAME};this.div=$MERO.Node.create('
    ');this.chk=$MERO.Node.create('');var d=new moment(a.PUBDT),d=(d"+a.NAME+"
    "+d+"");this.div.append(this.chk);this.div.append(this.lbl);this.chk.on("click",function(a){for(var b=a.getTarget(),c=this.fld.currentRecord,d={LABELIDS:[]},e=0;e'), d=c.one("tbody");for(a.length==0&&d.append("No available lists");a.length>0;){for(var e=$MERO.Node.create(""),f=0;f<3;f++){var g=$MERO.Node.create("");if(a.length>0){var h=a.shift();g.append((new b(h,this)).node());new moment(h.PUBDT)>new moment&&g.addClass("is-upcoming")}e.append(g)}d.append(e)}this.CONTAINER.append(c);this.currentRecord!=null&&this.setVal(this.currentRecord)},a);$.ajax({method:"POST",url:$MYTHYR.host+"ajax/getListLabels",data:'MYTHYR={"EKEY":"@@EKEY@@", "MODE":"LISTLABELSEARCH", "META":{"RECTYP":"'+ a.PARENTMETA.RECTYP+'"}}',async:!0,dataType:"json",success:$.proxy(a.build,a)});a.hasValue=$MERO.bind(function(){return this.CONTAINER.node.find("input[list-label-id]").length==0?!0:this.CONTAINER.node.find("input[list-label-id]:checked").length>0},a);a.setVal=$MERO.bind(function(a){this.currentRecord=a;var b=this.CONTAINER.all("input[list-label-id]");if(!(b==null||typeof a.LABELIDS!="object"||a.LABELIDS==null)){b.set("checked",!1);for(b=0;b0)});b.node.find(".mero-header2, .mero-header1, .mero-toggle").length>0&&(b.one(".LDATA_formCol.editable")!=null?$MYTHYR.formOpeners.openAll(b.node):$MYTHYR.formOpeners.init(b.node))});LDATA.events.register("onfieldfocus",function(a){try{var b=a.CONTAINER.node; if(!b.is(":visible")){var c=b.closest("[form-opener-id]").attr("form-opener-id");typeof c=="string"&&$("#"+c).click()}}catch(d){console.log("error focusing field: "+d)}});$MYTHYR.formOpeners()}};if(typeof c=="string")a.EKEY=c;if(typeof d=="function")a.init=d;(new MEROVEUS(a)).task(b)})}; $MYTHYR.resolve=function(a){if(typeof a!="object"||a==null)throw"Missing configuration object!";$MYTHYR.host=LDATA.utils.rtrim(a.host,"/")+"/";var b=typeof a.libhost=="string"&&a.libhost!=null?LDATA.utils.rtrim(a.libhost,"/")+"/":"";if(b.length>0)$MYTHYR.libHost=b;var c=b.length>0?b:$MYTHYR.host;LDATA.scriptsToLoad.push({file:b+"api/scripts/jquery.min.js",test:function(){return typeof $=="undefined"}});var d=typeof a.prefix=="string"&&a.prefix!=null?a.prefix:"",e=d.length>0?"pre/"+d+"/":"",h=typeof a.firstReferenceOnly== "boolean"?a.firstReferenceOnly:!1;if(typeof a.excludeHandle!="string"&&$MYTHYR.resolve.excludeHandle!=null&&typeof $MYTHYR.resolve.excludeHandle=="string")a.excludeHandle=$MYTHYR.resolve.excludeHandle;LDATA.importCSS(b+"css/"+e+"mythyr-widget.min.css");var f=d.length>0?d+"-main-content":"main-content",g=typeof a.mainTarget=="string"&&a.mainTarget!=null&&a.mainTarget.length>0?a.mainTarget:null;$MYTHYR.onEverythingLoaded.push(function(){var b=g==null?$("#"+f).parent():$(g),d=$("
    ");d.html(b.html()); d.find("script, img, nav, a").remove();typeof a.excludeHandle=="string"&&d.find(a.excludeHandle).remove();var e=typeof a.pageId!="undefined"?a.pageId:$MYTHYR.resolve.getPageId();if(e!=null){var l=(window.location.hostname+"-"+e).replace(/&/g,""),p=typeof a.pageTitle=="string"?a.pageTitle:$MYTHYR.resolve.getPageTitle(),q=typeof a.pageDt=="string"?a.pageDt:$MYTHYR.resolve.getPageDate(),e=typeof a.pageLink=="string"?a.pageLink:$MYTHYR.resolve.getPageLink(e),r=typeof a.readOnly=="boolean"?a.readOnly: !1,d=d.html().replace(/ /g," ").replace(/<\/?[^>]+(>|$)/g,"| ").trim(),m=null;$("body").on("mouseover","a[mrec-id]",function(a){m!=null&&clearTimeout(m);a.stopPropagation();var b=$(a.currentTarget);m=setTimeout(function(){$MYTHYR.resolve.details(b.attr("mrec-id"),b.attr("mrec-typ"),[a.pageX,a.pageY],b,l)},150)});$("body").on("mouseover",".mythyr-details",function(a){a.stopPropagation();m!=null&&clearTimeout(m)});$("body").on("mouseout","a[mrec-id], .mythyr-details",function(a){a.stopPropagation(); m!=null&&clearTimeout(m);m=setTimeout(function(){$MYTHYR.resolve.details.box!=null&&$MYTHYR.resolve.details.box.hide()},500)});try{typeof $MYTHYR.widget.customize=="function"&&$MYTHYR.widget.customize(a,b)}catch(n){console.log(n)}typeof a.data=="object"&&a.data!=null?$MYTHYR.resolve.callback(a.data,b,l,h):$.ajax({method:"POST",url:c+"text-resolve/",dataType:"json",data:"pageid="+l+"&pagedate="+LDATA.utils.postEncode(q)+"&pagetitle="+LDATA.utils.postEncode(p)+"&pagelink="+LDATA.utils.postEncode(e)+ (r?"&readonly=t":"")+"&rawtext="+LDATA.utils.postEncode(d),success:function(a){$MYTHYR.resolve.callback(a,b,l,h)}})}});LDATA.launchScripts()};$MYTHYR.resolve.excludeHandle=null; $MYTHYR.resolve.callback=function(a,b,c,d){if(typeof a=="object"&&a!=null&&a.length>0){for(var e=0;e1&&a.contents().unwrap()})}b.on("click","a[mrec-id]",function(a){var b=$(a.currentTarget);$MYTHYR.resolve.details(b.attr("mrec-id"),b.attr("mrec-typ"), [a.pageX,a.pageY],b,c)})}}; $MYTHYR.resolve.hyperlink=function(a,b,c){var d=RegExp("\\b"+a.replace(/\|/g,"\\|")+"(?![1-9a-zA-Z])","g");c.find(":not(script)").contents().filter(function(){try{if(this.parentNode.hasAttribute("mrec-id")||$MYTHYR.resolve.excludeHandle!=null&&$(this.parentNode).is($MYTHYR.resolve.excludeHandle))return!1}catch(a){}return this.nodeType===3}).replaceWith(function(){var c="";typeof $MYTHYR.local.bookmarker=="object"&&(c=' href="'+$MYTHYR.local.bookmarker.getUrl(b)+'"');return this.nodeValue.replace(d,""+a+"")})};$MYTHYR.resolve.enhanceMRecLinks=function(){return""};$MYTHYR.resolve.getPageTitle=function(){return $("title").html()};$MYTHYR.resolve.getPageLink=function(a){var b=window.location.href;return b.indexOf(a)!=-1?b:b.split("?")[0]};$MYTHYR.resolve.getPageDate=function(){return""}; $MYTHYR.resolve.getPageId=function(){var a=$("body.single-post").attr("class");if(a!=null&&a.length!=0)for(var a=a.split(" "),b=0;b'),$MYTHYR.resolve.details.boxDiv=$('
    '),$MYTHYR.resolve.details.box.append($MYTHYR.resolve.details.boxDiv),$("body").append($MYTHYR.resolve.details.box),$MYTHYR.resolve.details.box.on("click","a.mythyr-details-close",function(){$MYTHYR.resolve.details.box.hide()});a= 'MYTHYR={"EKEY":"@@EKEY@@", "MODE":"MAPDETAILS", "REMOTEHOST":"'+window.location.hostname+'", "REC":{"ID":"'+a+'","RECTYP":"'+b+'"}';typeof e!="undefined"&&e!=null&&(a+=', "ARTICLE":{"REMOTEID":"'+LDATA.utils.prepJSON(e)+'"}');a+="}";var h=$MYTHYR.libHost||$MYTHYR.host;$.ajax({method:"POST",success:$.proxy(function(a){$MYTHYR.resolve.details.boxDiv.empty();$MYTHYR.resolve.details.boxDiv.append('

    Profiles

    ');$MYTHYR.resolve.details.box.attr("rec-id",a.recId);$MYTHYR.resolve.details.box.attr("rec-name",a.title);$MYTHYR.resolve.details.box.attr("rec-slug",typeof a.recSlug=="string"?a.recSlug:"");var b=a.title;typeof $MYTHYR.local.bookmarker=="object"&&(b=''+b+"");$MYTHYR.resolve.details.boxDiv.append("

    "+b+"

    ");$MYTHYR.resolve.details.boxDiv.append(a.details); var b=c[0],d=c[1]-130,e=$(window).outerWidth(),e=c[0]100&&(a+=15,a<165&&(a=165),$MYTHYR.resolve.details.box.css("height",a+"px"))});typeof $MYTHYR.local.bookmarker=="object"&&!$MYTHYR.local.bookmarker.isDisabled()&&(a=$MYTHYR.local.bookmarker.isBookmarked(a.recId), $MYTHYR.resolve.details.box.find(".ldata-rec-bookmark").remove(),$MYTHYR.resolve.details.box.append('
    '),$MYTHYR.resolve.details.boxDiv.find("ul.peers-ul li[rec-id][rec-name]").each(function(){var a=$(this),b=''+a.html()+"";a.html(b)}))},this), complete:$MYTHYR.endAjax,error:function(a){console.log(a)},url:$MYTHYR.host+"ajax/getdetails",data:a,dataType:"json"})};$MYTHYR.resolve.details.box=null;$MYTHYR.resolve.details.boxDiv=null; if ( typeof $MYTHYR.widget == "function" ) { console.log( "widget customize!" ); $MYTHYR.widget.customize = function( cfg, node, mconsole, activeList ) { if ( typeof activeList == "object" && activeList != null ) { $('.btm-ldl-theme').addClass( "list-preview-context" ); } else { $(".btm-ldl-theme").addClass( "ecom-disabled" ); cfg.onBuildComplete = function() { if ( $(".btm-ldl-theme [add-to-cart]").length == 0 ) $(".btm-ldl-theme").removeClass( "ecom-disabled" ); } } } $MYTHYR.resolve.excludeHandle = ".wp-caption-text"; $MYTHYR.resolve.hyperlink = function( nam, rec, tgt ) { //var regex = new RegExp('\\b'+nam+'(?![1-9a-zA-Z])', "g"); var regex = new RegExp('\\b'+nam.replace(/\|/g,"\\|")+'(?![1-9a-zA-Z])', "g"); console.log( tgt.is( $MYTHYR.resolve.excludeHandle ) ); tgt.find(':not(script)').contents().filter(function() { try { if( this.parentNode.hasAttribute("mrec-id") || $(this.parentNode).is($MYTHYR.resolve.excludeHandle) ) { return false; } } catch (e) { /*do nothing*/ } return this.nodeType === 3; }).replaceWith(function() { var href=""; if ( typeof $MYTHYR.local.bookmarker == "object" ) { href = ' href="'+$MYTHYR.local.bookmarker.getUrl(rec)+'"'; } return this.nodeValue.replace(regex,''+nam+''); }); } $MYTHYR.resolve.details = function( recId, recTyp, coords, tgt, pgId ) { if ( $MYTHYR.resolve.details.box == null ) { $MYTHYR.resolve.details.box = $('
    '); $MYTHYR.resolve.details.boxDiv = $('
    '); $MYTHYR.resolve.details.box.append( $MYTHYR.resolve.details.boxDiv ); $("body").append( $MYTHYR.resolve.details.box ); $MYTHYR.resolve.details.box.on( "click", "a.mythyr-details-close", function() { $MYTHYR.resolve.details.box.hide(); }); } var req = 'MYTHYR={"EKEY":"@@EKEY@@", "MODE":"MAPDETAILS", "REMOTEHOST":"'+window.location.hostname+'", "REC":{"ID":"'+recId+'","RECTYP":"'+recTyp+'"}'; if ( typeof pgId != "undefined" && pgId != null ) { req += ', "ARTICLE":{"REMOTEID":"'+LDATA.utils.prepJSON(pgId)+'"}'; } req += '}'; $.ajax({ method:"POST", success:$.proxy(function(data) { $MYTHYR.resolve.details.boxDiv.empty(); $MYTHYR.resolve.details.boxDiv.append( '

    Click here to access thousands of local B2B leads in one place

    ' ); $MYTHYR.resolve.details.box.attr("rec-id", data.recId); $MYTHYR.resolve.details.box.attr("rec-name", data.title); $MYTHYR.resolve.details.box.attr("rec-slug", typeof data.recSlug == "string" ? data.recSlug : ""); var ttl = data.title; if ( typeof $MYTHYR.local.bookmarker == "object" ) { ttl = '' + ttl + ''; } $MYTHYR.resolve.details.boxDiv.append( '

    '+ttl+'

    ' ); $MYTHYR.resolve.details.boxDiv.append( data.details ); var left = coords[0]; var top = coords[1] - 130; var woff = $(window).outerWidth(); var dir = ( coords[0] < woff/2 ? "left" : "right" ); left += ( dir == "left" ? 20 : -350 - 40 ); $MYTHYR.resolve.details.box.attr( "arrow-box", dir ); $MYTHYR.resolve.details.box.css( {left:left+"px",top:top+"px",height:"auto"} ); $MYTHYR.resolve.details.box.show(0,function() { var h = $MYTHYR.resolve.details.boxDiv.outerHeight(); if ( h > 100 ) { h += 15; if ( h < 165 ) h = 165; $MYTHYR.resolve.details.box.css( "height", h+"px" ); } }); if ( typeof $MYTHYR.local.bookmarker == "object" && !$MYTHYR.local.bookmarker.isDisabled() ) { var isBookmarked = $MYTHYR.local.bookmarker.isBookmarked( data.recId ); $MYTHYR.resolve.details.box.find( ".ldata-rec-bookmark" ).remove(); $MYTHYR.resolve.details.box.append( '
    ' ); } }, this), complete:$MYTHYR.endAjax, error:function(err) {console.log(err);}, url:$MYTHYR.host+"ajax/getdetails", data:req, dataType:"json" }); } } if ( typeof $MYTHYR.widget == "function" ) { console.log( "widget customize!" ); if ( typeof $MYTHYR.widget.dropdown.placeholderLabel == "function" ) { $MYTHYR.widget.dropdown.placeholderLabel = function( dclass, placeholder ) { if ( dclass.indexOf( "category" ) != -1 ) return "Filter by Category"; return placeholder; } } $MYTHYR.widget.customize = function( cfg, node, mconsole, list ) { if ( typeof list == "object" && list != null ) { $('.btm-ldl-theme').addClass( "list-preview-context" ); } else { $(".btm-ldl-theme").addClass( "ecom-disabled" ); cfg.onBuildComplete = function() { if ( $(".btm-ldl-theme [add-to-cart]").length == 0 ) $(".btm-ldl-theme").removeClass( "ecom-disabled" ); } } } $MYTHYR.resolve.excludeHandle = ".wp-caption-text"; $MYTHYR.resolve.hyperlink = function( nam, rec, tgt ) { var regex = new RegExp('\\b'+nam+'(?![1-9a-zA-Z])', "g"); console.log( tgt.is( $MYTHYR.resolve.excludeHandle ) ); tgt.find(':not(script)').contents().filter(function() { try { if( this.parentNode.hasAttribute("mrec-id") || $(this.parentNode).is($MYTHYR.resolve.excludeHandle) ) { return false; } } catch (e) { /*do nothing*/ } return this.nodeType === 3; }).replaceWith(function() { var href=""; if ( typeof $MYTHYR.local.bookmarker == "object" ) { href = ' href="'+$MYTHYR.local.bookmarker.getUrl(rec)+'"'; } return this.nodeValue.replace(regex,''+nam+''); }); } $MYTHYR.resolve.details = function( recId, recTyp, coords, tgt, pgId ) { if ( $MYTHYR.resolve.details.box == null ) { $MYTHYR.resolve.details.box = $('
    '); $MYTHYR.resolve.details.boxDiv = $('
    '); $MYTHYR.resolve.details.box.append( $MYTHYR.resolve.details.boxDiv ); $("body").append( $MYTHYR.resolve.details.box ); $MYTHYR.resolve.details.box.on( "click", "a.mythyr-details-close", function() { $MYTHYR.resolve.details.box.hide(); }); } var req = 'MYTHYR={"EKEY":"@@EKEY@@", "MODE":"MAPDETAILS", "REMOTEHOST":"'+window.location.hostname+'", "REC":{"ID":"'+recId+'","RECTYP":"'+recTyp+'"}'; if ( typeof pgId != "undefined" && pgId != null ) { req += ', "ARTICLE":{"REMOTEID":"'+LDATA.utils.prepJSON(pgId)+'"}'; } req += '}'; $.ajax({ method:"POST", success:$.proxy(function(data) { $MYTHYR.resolve.details.boxDiv.empty(); //$MYTHYR.resolve.details.boxDiv.append( '

    Click here to access thousands of local B2B leads in one place

    ' ); $MYTHYR.resolve.details.box.attr("rec-id", data.recId); $MYTHYR.resolve.details.box.attr("rec-name", data.title); $MYTHYR.resolve.details.box.attr("rec-slug", typeof data.recSlug == "string" ? data.recSlug : ""); var ttl = data.title; if ( typeof $MYTHYR.local.bookmarker == "object" ) { ttl = '' + ttl + ''; } $MYTHYR.resolve.details.boxDiv.append( '

    '+ttl+'

    ' ); $MYTHYR.resolve.details.boxDiv.append( data.details ); var left = coords[0]; var top = coords[1] - 130; var woff = $(window).outerWidth(); var dir = ( coords[0] < woff/2 ? "left" : "right" ); left += ( dir == "left" ? 20 : -350 - 40 ); $MYTHYR.resolve.details.box.attr( "arrow-box", dir ); $MYTHYR.resolve.details.box.css( {left:left+"px",top:top+"px",height:"auto"} ); $MYTHYR.resolve.details.box.show(0,function() { var h = $MYTHYR.resolve.details.boxDiv.outerHeight(); if ( h > 100 ) { h += 15; if ( h < 165 ) h = 165; $MYTHYR.resolve.details.box.css( "height", h+"px" ); } }); if ( typeof $MYTHYR.local.bookmarker == "object" && !$MYTHYR.local.bookmarker.isDisabled() ) { var isBookmarked = $MYTHYR.local.bookmarker.isBookmarked( data.recId ); $MYTHYR.resolve.details.box.find( ".ldata-rec-bookmark" ).remove(); $MYTHYR.resolve.details.box.append( '
    ' ); } }, this), complete:$MYTHYR.endAjax, error:function(err) {console.log(err);}, url:$MYTHYR.host+"ajax/getdetails", data:req, dataType:"json" }); } }